package com.linxz.libui;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.linxz.ui.widgets.SmartLayout;

public class MainActivity extends AppCompatActivity {

    SmartLayout layoutSmart;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        layoutSmart=findViewById(R.id.layoutSmart);
    }

    public void onLoading(View view){
        layoutSmart.showLoadingView();
    }

    public void onSuccess(View view){
        layoutSmart.showNormal();
    }

    public void onEmpty(View view){
        layoutSmart.showEmptyView();
    }

    public void onError(View view){
        layoutSmart.showErrorView();
    }
}
